﻿using GEPL.InterfaceLibrary;
using GEPL.StandardModulesLibrary.Properties;
using GEPL.StandardModulesLibrary.Views.Console;
using System;
using System.Runtime.Serialization;

namespace GEPL.StandardModulesLibrary.Elements.Console
{
    [Serializable]
    public class ConsoleClearElement : IElement
    {
        public ConsoleClearElement()
        {
        }

        public ConsoleClearElement(SerializationInfo info, StreamingContext context)
        {
        }

        public ElementType ElementType
        {
            get { return ElementType.NormalStatement; }
        }

        public ProjectType ProjectType
        {
            get { return ProjectType.Console; }
        }

        public string ElementName
        {
            get { return Resources.Names_ConsoleClear; }
        }

        public object Data
        {
            get { return null; }
        }

        public Type UserControlType
        {
            get { return typeof(ConsoleClearView); }
        }

        public string GetScript()
        {
            return "Console.Clear()";
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
        }
    }
}